const mongoose = require("mongoose")
const Schema = mongoose.Schema
const UserType = {
    username: String,
    password: String,
    introduction:String,
    avatarUrl:String,
    gender:Number,
    //联系其他集合
    role: {type:Schema.Types.ObjectId,ref:"role"/*关联role*/},
    default:Boolean
}
const UserModel = mongoose.model("user",new Schema(UserType))
module.exports = UserModel